package com.itheima.ui;

import java.util.ArrayList;

/**
 * @author zhangbaiyan
 * @date 2024-09-09 08:01
 * @description:
 * @version:
 */
public class fanshiwenhao {
    public static void main(String[] args) {
        ArrayList<ye> list = new ArrayList<>();
        method(list);
        ArrayList<fu> list1 =  new ArrayList<>();
        ArrayList<zi> list3 = new ArrayList<>();
        ArrayList<Student> list2 = new ArrayList<>();
//        method(list2);
        method(list1);
        method(list3);


    }

    public static void method(ArrayList<?extends ye> list){

    }
    class ye{

    }
    class fu  extends ye{}
    class zi extends fu{}

    class Student {}
}
